import java.util.logging.FileHandler;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;


public class MyLogger
{
	private final static Logger LOGGER = Logger.getLogger("myLogger");
	
	public static Logger getLogger()
	{
		try
		{
			FileHandler fileHandler = new FileHandler("log.txt");
			fileHandler.setFormatter(new SimpleFormatter());
			LOGGER.addHandler(fileHandler);	
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		
		return LOGGER;
	}
}
